package com.xhwl.centiotdata.emq;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangsanhu
 */
@Configuration
@ConfigurationProperties(prefix = "mqtt")
public class MqttProperties {

    private String brokerUrl;

    private String username;

    private String password;

    private String authCreateTopic;

    private String visitorTopic;

    public String getBrokerUrl() {
        return brokerUrl;
    }

    public void setBrokerUrl(String brokerUrl) {
        this.brokerUrl = brokerUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAuthCreateTopic() {
        return authCreateTopic;
    }

    public void setAuthCreateTopic(String authCreateTopic) {
        this.authCreateTopic = authCreateTopic;
    }

    public String getVisitorTopic() {
        return visitorTopic;
    }

    public void setVisitorTopic(String visitorTopic) {
        this.visitorTopic = visitorTopic;
    }

    @Override
    public String toString() {
        return "MqttProperties{" +
                "brokerUrl='" + brokerUrl + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", authCreateTopic='" + authCreateTopic + '\'' +
                ", visitorTopic='" + visitorTopic + '\'' +
                '}';
    }

}
